package com.yitiao.base.delay;

import lombok.Data;

/**
 * 延迟任务类
 */
@Data
public class DelayedTask implements Runnable {
    private String taskName;
    private long delayTime;

    public DelayedTask(String taskName, long delayTime) {
        this.taskName = taskName;
        this.delayTime = delayTime;
    }

    @Override
    public void run() {
        System.out.println("Executing task: " + taskName);
    }
}
